import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: "/format"
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/format',
      name: 'format',
      component: () => import('../views/Format.vue')
    },
    {
      path: '/formatItem',
      name: 'formatItem',
      component: () => import('../views/FormatItem.vue'),
    },
    {
      path: '/fast',
      name: 'fast',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/FastForm.vue')
    },
    {
      path: '/users',
      name: 'UserManagement',
      component: () => import('../views/UserManagement.vue')
    },
    {
      path: '/auto',
      name: 'auto',
      component: () => import('../views/Auto.vue')
    },
    {
      path: '/txt',
      name: 'txt',
      component: () => import('../views/txt.vue')
    },
    {
      path: '/test',
      name: 'test',
      component: () => import('../views/test.vue')
    },
    {
      path: '/sub',
      name: 'sub',
      component: () => import('../views/sub.vue')
    },
    {
      path: '/all',
      name: 'all',
      component: () => import('../views/all.vue')
    },
    {
      path: '/new',
      name: 'new',
      component: () => import('../views/new.vue')
    }
  ]
})

export default router
